<?php
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
*/

/**
 * Description of RandomGenerator
 *
 * @author cshepherd
 */
class RandomGenerator {    
    public function myUniqId($numStr) {
        srand((double)microtime()*rand(1000000,9999999));
        $arrChar=array();
        //$uId=$strPrx;
        for($i=65;$i<90;$i++) {
            array_push($arrChar,chr($i));
            array_push($arrChar,strtolower(chr($i)));
        }
        for($i=48;$i<57;$i++) {
            array_push($arrChar,chr($i));
        }
        for($i=0;$i<$numStr;$i++) {
            $uId.=$arrChar[rand(0,count($arrChar))];
        }
        return $uId;
    }
}
?>
